<%include file="include/head.html"%>
<div class="wrapper">
  <div class="ym-wbox" id="1div-add-event">
    <%include file="include/crumbs.html"%>
    <%include file="include/edit_nav.html"%>
    <div class="div-info-body">
      <form class="validate" action="/users/insert_event" method="post">
	<input type="hidden" name="user_id" value="<%$user.id%>"/><br/>
	<dl id="dl-add-event">
          <dt>人物：</dt>
          <dd><%$user.realname%></dd>
          <dt>时间：</dt>
          <dd><input required class="" maxlength="11" type="text" 
		     name="date"/>格式：公元28年，30岁时，民国29年等均可。</dd>
          <dt>记事：</dt>
          <dd><textarea required class="required" name="event"></textarea></dd>
          <dt>&nbsp;</dt>
          <dd><input type="submit" class="ym-button" value="提交"/></dd>
	</dl>
	
      </form>
    </div>
  </div>
</div>
<script src="<%$JS_DIR%>/jquery.metadata.js"></script>
<script src="<%$JS_DIR%>/jquery.validate.js"></script>
<script src="<%$JS_DIR%>/messages_cn.js"></script>
<script src="<%$JS_DIR%>/form.validate.js"></script>
<script>
  var s = document.createElement("input");
  s.setAttribute("type", "email");
  if (s.type !== "email")
  {
  // not support html5 form, use jquery validate
  alert("not email, jquery validate");
  $("form.validate").validate();
  }
</script>
<%include file="include/bottom.html"%>  



